package com.example.henry.yindu.myclass;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.example.henry.yindu.R;
import com.example.henry.yindu.activity.MainActivity;
import com.example.henry.yindu.activity.ResourceManager;

/**
 * Created by Henry on 2018/4/6.
 */

public class MidBar extends LinearLayout  {
    private MainActivity mainActivity;
    private LinearLayout l1;
    private LinearLayout l2;
    private LinearLayout l3;
    private LinearLayout l4;
    public MidBar(Context context) {super(context);}
    public MidBar(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater inflater = LayoutInflater.from(context);
        inflater.inflate(R.layout.mid_bar, null);
        l1 = (LinearLayout) findViewById(R.id.l1);
        l2 = (LinearLayout) findViewById(R.id.l2);
        l3 = (LinearLayout) findViewById(R.id.l3);
        l4 = (LinearLayout) findViewById(R.id.l4);

    }


    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
    }

    public LinearLayout getL1 () {
        return l1;
    }

    public LinearLayout getL2 () {
        return l2;
    }

    public LinearLayout getL3 () {
        return l3;
    }

    public LinearLayout getL4 () {
        return l4;
    }
}
